package com.stu.bean;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class InvitationExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public InvitationExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIidIsNull() {
            addCriterion("iid is null");
            return (Criteria) this;
        }

        public Criteria andIidIsNotNull() {
            addCriterion("iid is not null");
            return (Criteria) this;
        }

        public Criteria andIidEqualTo(Integer value) {
            addCriterion("iid =", value, "iid");
            return (Criteria) this;
        }

        public Criteria andIidNotEqualTo(Integer value) {
            addCriterion("iid <>", value, "iid");
            return (Criteria) this;
        }

        public Criteria andIidGreaterThan(Integer value) {
            addCriterion("iid >", value, "iid");
            return (Criteria) this;
        }

        public Criteria andIidGreaterThanOrEqualTo(Integer value) {
            addCriterion("iid >=", value, "iid");
            return (Criteria) this;
        }

        public Criteria andIidLessThan(Integer value) {
            addCriterion("iid <", value, "iid");
            return (Criteria) this;
        }

        public Criteria andIidLessThanOrEqualTo(Integer value) {
            addCriterion("iid <=", value, "iid");
            return (Criteria) this;
        }

        public Criteria andIidIn(List<Integer> values) {
            addCriterion("iid in", values, "iid");
            return (Criteria) this;
        }

        public Criteria andIidNotIn(List<Integer> values) {
            addCriterion("iid not in", values, "iid");
            return (Criteria) this;
        }

        public Criteria andIidBetween(Integer value1, Integer value2) {
            addCriterion("iid between", value1, value2, "iid");
            return (Criteria) this;
        }

        public Criteria andIidNotBetween(Integer value1, Integer value2) {
            addCriterion("iid not between", value1, value2, "iid");
            return (Criteria) this;
        }

        public Criteria andInameIsNull() {
            addCriterion("iname is null");
            return (Criteria) this;
        }

        public Criteria andInameIsNotNull() {
            addCriterion("iname is not null");
            return (Criteria) this;
        }

        public Criteria andInameEqualTo(String value) {
            addCriterion("iname =", value, "iname");
            return (Criteria) this;
        }

        public Criteria andInameNotEqualTo(String value) {
            addCriterion("iname <>", value, "iname");
            return (Criteria) this;
        }

        public Criteria andInameGreaterThan(String value) {
            addCriterion("iname >", value, "iname");
            return (Criteria) this;
        }

        public Criteria andInameGreaterThanOrEqualTo(String value) {
            addCriterion("iname >=", value, "iname");
            return (Criteria) this;
        }

        public Criteria andInameLessThan(String value) {
            addCriterion("iname <", value, "iname");
            return (Criteria) this;
        }

        public Criteria andInameLessThanOrEqualTo(String value) {
            addCriterion("iname <=", value, "iname");
            return (Criteria) this;
        }

        public Criteria andInameLike(String value) {
            addCriterion("iname like", value, "iname");
            return (Criteria) this;
        }

        public Criteria andInameNotLike(String value) {
            addCriterion("iname not like", value, "iname");
            return (Criteria) this;
        }

        public Criteria andInameIn(List<String> values) {
            addCriterion("iname in", values, "iname");
            return (Criteria) this;
        }

        public Criteria andInameNotIn(List<String> values) {
            addCriterion("iname not in", values, "iname");
            return (Criteria) this;
        }

        public Criteria andInameBetween(String value1, String value2) {
            addCriterion("iname between", value1, value2, "iname");
            return (Criteria) this;
        }

        public Criteria andInameNotBetween(String value1, String value2) {
            addCriterion("iname not between", value1, value2, "iname");
            return (Criteria) this;
        }

        public Criteria andIimgIsNull() {
            addCriterion("iimg is null");
            return (Criteria) this;
        }

        public Criteria andIimgIsNotNull() {
            addCriterion("iimg is not null");
            return (Criteria) this;
        }

        public Criteria andIimgEqualTo(String value) {
            addCriterion("iimg =", value, "iimg");
            return (Criteria) this;
        }

        public Criteria andIimgNotEqualTo(String value) {
            addCriterion("iimg <>", value, "iimg");
            return (Criteria) this;
        }

        public Criteria andIimgGreaterThan(String value) {
            addCriterion("iimg >", value, "iimg");
            return (Criteria) this;
        }

        public Criteria andIimgGreaterThanOrEqualTo(String value) {
            addCriterion("iimg >=", value, "iimg");
            return (Criteria) this;
        }

        public Criteria andIimgLessThan(String value) {
            addCriterion("iimg <", value, "iimg");
            return (Criteria) this;
        }

        public Criteria andIimgLessThanOrEqualTo(String value) {
            addCriterion("iimg <=", value, "iimg");
            return (Criteria) this;
        }

        public Criteria andIimgLike(String value) {
            addCriterion("iimg like", value, "iimg");
            return (Criteria) this;
        }

        public Criteria andIimgNotLike(String value) {
            addCriterion("iimg not like", value, "iimg");
            return (Criteria) this;
        }

        public Criteria andIimgIn(List<String> values) {
            addCriterion("iimg in", values, "iimg");
            return (Criteria) this;
        }

        public Criteria andIimgNotIn(List<String> values) {
            addCriterion("iimg not in", values, "iimg");
            return (Criteria) this;
        }

        public Criteria andIimgBetween(String value1, String value2) {
            addCriterion("iimg between", value1, value2, "iimg");
            return (Criteria) this;
        }

        public Criteria andIimgNotBetween(String value1, String value2) {
            addCriterion("iimg not between", value1, value2, "iimg");
            return (Criteria) this;
        }

        public Criteria andItypeIsNull() {
            addCriterion("itype is null");
            return (Criteria) this;
        }

        public Criteria andItypeIsNotNull() {
            addCriterion("itype is not null");
            return (Criteria) this;
        }

        public Criteria andItypeEqualTo(String value) {
            addCriterion("itype =", value, "itype");
            return (Criteria) this;
        }

        public Criteria andItypeNotEqualTo(String value) {
            addCriterion("itype <>", value, "itype");
            return (Criteria) this;
        }

        public Criteria andItypeGreaterThan(String value) {
            addCriterion("itype >", value, "itype");
            return (Criteria) this;
        }

        public Criteria andItypeGreaterThanOrEqualTo(String value) {
            addCriterion("itype >=", value, "itype");
            return (Criteria) this;
        }

        public Criteria andItypeLessThan(String value) {
            addCriterion("itype <", value, "itype");
            return (Criteria) this;
        }

        public Criteria andItypeLessThanOrEqualTo(String value) {
            addCriterion("itype <=", value, "itype");
            return (Criteria) this;
        }

        public Criteria andItypeLike(String value) {
            addCriterion("itype like", value, "itype");
            return (Criteria) this;
        }

        public Criteria andItypeNotLike(String value) {
            addCriterion("itype not like", value, "itype");
            return (Criteria) this;
        }

        public Criteria andItypeIn(List<String> values) {
            addCriterion("itype in", values, "itype");
            return (Criteria) this;
        }

        public Criteria andItypeNotIn(List<String> values) {
            addCriterion("itype not in", values, "itype");
            return (Criteria) this;
        }

        public Criteria andItypeBetween(String value1, String value2) {
            addCriterion("itype between", value1, value2, "itype");
            return (Criteria) this;
        }

        public Criteria andItypeNotBetween(String value1, String value2) {
            addCriterion("itype not between", value1, value2, "itype");
            return (Criteria) this;
        }

        public Criteria andContentIsNull() {
            addCriterion("content is null");
            return (Criteria) this;
        }

        public Criteria andContentIsNotNull() {
            addCriterion("content is not null");
            return (Criteria) this;
        }

        public Criteria andContentEqualTo(String value) {
            addCriterion("content =", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotEqualTo(String value) {
            addCriterion("content <>", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentGreaterThan(String value) {
            addCriterion("content >", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentGreaterThanOrEqualTo(String value) {
            addCriterion("content >=", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLessThan(String value) {
            addCriterion("content <", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLessThanOrEqualTo(String value) {
            addCriterion("content <=", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLike(String value) {
            addCriterion("content like", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotLike(String value) {
            addCriterion("content not like", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentIn(List<String> values) {
            addCriterion("content in", values, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotIn(List<String> values) {
            addCriterion("content not in", values, "content");
            return (Criteria) this;
        }

        public Criteria andContentBetween(String value1, String value2) {
            addCriterion("content between", value1, value2, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotBetween(String value1, String value2) {
            addCriterion("content not between", value1, value2, "content");
            return (Criteria) this;
        }

        public Criteria andImjobIsNull() {
            addCriterion("imjob is null");
            return (Criteria) this;
        }

        public Criteria andImjobIsNotNull() {
            addCriterion("imjob is not null");
            return (Criteria) this;
        }

        public Criteria andImjobEqualTo(String value) {
            addCriterion("imjob =", value, "imjob");
            return (Criteria) this;
        }

        public Criteria andImjobNotEqualTo(String value) {
            addCriterion("imjob <>", value, "imjob");
            return (Criteria) this;
        }

        public Criteria andImjobGreaterThan(String value) {
            addCriterion("imjob >", value, "imjob");
            return (Criteria) this;
        }

        public Criteria andImjobGreaterThanOrEqualTo(String value) {
            addCriterion("imjob >=", value, "imjob");
            return (Criteria) this;
        }

        public Criteria andImjobLessThan(String value) {
            addCriterion("imjob <", value, "imjob");
            return (Criteria) this;
        }

        public Criteria andImjobLessThanOrEqualTo(String value) {
            addCriterion("imjob <=", value, "imjob");
            return (Criteria) this;
        }

        public Criteria andImjobLike(String value) {
            addCriterion("imjob like", value, "imjob");
            return (Criteria) this;
        }

        public Criteria andImjobNotLike(String value) {
            addCriterion("imjob not like", value, "imjob");
            return (Criteria) this;
        }

        public Criteria andImjobIn(List<String> values) {
            addCriterion("imjob in", values, "imjob");
            return (Criteria) this;
        }

        public Criteria andImjobNotIn(List<String> values) {
            addCriterion("imjob not in", values, "imjob");
            return (Criteria) this;
        }

        public Criteria andImjobBetween(String value1, String value2) {
            addCriterion("imjob between", value1, value2, "imjob");
            return (Criteria) this;
        }

        public Criteria andImjobNotBetween(String value1, String value2) {
            addCriterion("imjob not between", value1, value2, "imjob");
            return (Criteria) this;
        }

        public Criteria andRetimeIsNull() {
            addCriterion("retime is null");
            return (Criteria) this;
        }

        public Criteria andRetimeIsNotNull() {
            addCriterion("retime is not null");
            return (Criteria) this;
        }

        public Criteria andRetimeEqualTo(Date value) {
            addCriterion("retime =", value, "retime");
            return (Criteria) this;
        }

        public Criteria andRetimeNotEqualTo(Date value) {
            addCriterion("retime <>", value, "retime");
            return (Criteria) this;
        }

        public Criteria andRetimeGreaterThan(Date value) {
            addCriterion("retime >", value, "retime");
            return (Criteria) this;
        }

        public Criteria andRetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("retime >=", value, "retime");
            return (Criteria) this;
        }

        public Criteria andRetimeLessThan(Date value) {
            addCriterion("retime <", value, "retime");
            return (Criteria) this;
        }

        public Criteria andRetimeLessThanOrEqualTo(Date value) {
            addCriterion("retime <=", value, "retime");
            return (Criteria) this;
        }

        public Criteria andRetimeIn(List<Date> values) {
            addCriterion("retime in", values, "retime");
            return (Criteria) this;
        }

        public Criteria andRetimeNotIn(List<Date> values) {
            addCriterion("retime not in", values, "retime");
            return (Criteria) this;
        }

        public Criteria andRetimeBetween(Date value1, Date value2) {
            addCriterion("retime between", value1, value2, "retime");
            return (Criteria) this;
        }

        public Criteria andRetimeNotBetween(Date value1, Date value2) {
            addCriterion("retime not between", value1, value2, "retime");
            return (Criteria) this;
        }

        public Criteria andUseridIsNull() {
            addCriterion("userid is null");
            return (Criteria) this;
        }

        public Criteria andUseridIsNotNull() {
            addCriterion("userid is not null");
            return (Criteria) this;
        }

        public Criteria andUseridEqualTo(Integer value) {
            addCriterion("userid =", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotEqualTo(Integer value) {
            addCriterion("userid <>", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThan(Integer value) {
            addCriterion("userid >", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThanOrEqualTo(Integer value) {
            addCriterion("userid >=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThan(Integer value) {
            addCriterion("userid <", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThanOrEqualTo(Integer value) {
            addCriterion("userid <=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridIn(List<Integer> values) {
            addCriterion("userid in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotIn(List<Integer> values) {
            addCriterion("userid not in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridBetween(Integer value1, Integer value2) {
            addCriterion("userid between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotBetween(Integer value1, Integer value2) {
            addCriterion("userid not between", value1, value2, "userid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}